﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Register.ascx.cs" Inherits="cbmobile.MasterUser.UC_Page.Register" %>
<style type="text/css">
    .style1
    {
        width: 40%;
        height: 70px;
    }
    .style2
    {
        height: 70px;
    }
</style>


<div id="main">
    <div class="bann-top"></div>
    <div id="pro-home-info">
        <div class="pro-home-titles">
            <p>
                <span>ĐĂNG KÝ THÀNH VIÊN</span>
            </p>
        </div>
        <div class="pro-home-detail">
              <table style="width: 99%;" cellpadding="5px" cellspacing="5px" class="bodyMainMod">
    
                    <tr>
                        <td style="width:40%" align="right">
                            Tên đăng nhập:&nbsp;</td>
                        <td>
        
                            &nbsp;<asp:TextBox ID="txtTenDangNhap" runat="server" Width="200"></asp:TextBox>&nbsp;&nbsp;
                            <asp:LinkButton ID="LcmdKiemTra" runat="server" onclick="LcmdKiemTra_Click" >Kiểm tra</asp:LinkButton>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="txtTenDangNhap" ErrorMessage="Vui lòng điền Tên đăng nhập."
                            ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>

                    <tr>
                        <td style="width:40%" align="right">
                            Mật khẩu:&nbsp;</td>
                        <td>
                            &nbsp;<asp:TextBox ID="txtPassword" runat="server" 
                                TextMode="Password" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtPassword" ErrorMessage="Vui lòng nhập mật khẩu."
                            ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            Xác nhận mật khẩu:&nbsp;</td>
                        <td>
                            &nbsp;<asp:TextBox ID="txtPassConfirm" runat="server" 
                                TextMode="Password" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="txtPassConfirm" ErrorMessage="Vui lòng xác nhận mật khẩu."
                            ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                            ControlToValidate="txtPassConfirm" ControlToCompare="txtPassword" ErrorMessage="CompareValidator"
                            ValidationGroup="RegisterUserValidationGroup">(*)</asp:CompareValidator>
                        </td>
                    </tr>

                    <tr>
                        <td style="width:40%" align="right">
                            Tên đầy đủ:&nbsp;
                        </td>
                        <td>
                            &nbsp;<asp:TextBox ID="txtTenDayDu" runat="server" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                             ControlToValidate="txtTenDayDu" runat="server" ErrorMessage="Vui lòng nhập tên đầy đủ của bạn."
                             ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            Giới tính:&nbsp;
                        </td>
                        <td><asp:RadioButtonList ID="radSex" 
                                runat="server" RepeatDirection="Vertical">
                                <asp:ListItem Value="1" Selected="True">Nam</asp:ListItem>
                                <asp:ListItem Value="0">Nữ</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            Địa chỉ:&nbsp;
                        </td>
                        <td>
                            &nbsp;<asp:TextBox ID="txtAddress" runat="server" Width="200px"></asp:TextBox>
            
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            Điện thoại:&nbsp;</td>
                        <td>
                            &nbsp;<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            Email:&nbsp;</td>
                        <td>
                            &nbsp;<asp:TextBox 
                                ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"
                             ControlToValidate="txtEmail" ErrorMessage="Không để trống Email"
                             ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1"
                             ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" runat="server" 
                                ErrorMessage="RegularExpressionValidator"
                                ValidationGroup="RegisterUserValidationGroup">(*)</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td align="right" class="style1">
                            Ngày sinh:&nbsp;
                        </td>
                        <td class="style2">&nbsp;&nbsp;Tháng
                            <asp:DropDownList ID="ddlMonth" runat="server" Width="50px">
                            </asp:DropDownList>
                            <asp:Label ID="lblday" runat="server" Text="Label">&nbsp;&nbsp;Ngày</asp:Label>
                &nbsp;<asp:DropDownList ID="ddlDate" runat="server" Width="50px">
                            </asp:DropDownList>
                            &nbsp;&nbsp;Năm
                            <asp:TextBox ID="txtYear" runat="server" Width="50px" ></asp:TextBox>
                            <asp:Label ID="lbLoi" Visible="false" runat="server" Text="Label">&nbsp;&nbsp;Ngày</asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            CMND:&nbsp;
                        </td>
                        <td>&nbsp;<asp:TextBox ID="txtCMND" runat="server" Width="200px"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"
                             ControlToValidate="txtCMND" ErrorMessage="Điền số CMND của bạn."
                             ValidationGroup="RegisterUserValidationGroup">(*)</asp:RequiredFieldValidator>
                        </td>
                    </tr>
    
    
                    <tr>
                        <td style="width:40%" align="right">
                            &nbsp;</td>
                        <td>
                            &nbsp;<asp:Button ID="Button1" runat="server" Text="Đăng ký" 
                                onclick="cmDDangKy_Click" />
                            &nbsp;&nbsp;&nbsp;
                            <asp:Button ID="Button2" runat="server" Text="Hủy" onclick="Button2_Click1" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width:40%" align="right">
                            &nbsp;</td>
                        <td>
                            <asp:Label ID="lblError" runat="server" ForeColor="#996600" 
                                Text="Lỗi : không thể đăng ký" Visible="False"></asp:Label><br />
                            <asp:Label ID="lblTrungTen" runat="server" ForeColor="#996600" 
                                Text="Lỗi : Trùng trên đăng nhập" Visible="False"></asp:Label>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                        </td>
                    </tr>
                </table>
        </div>
        <div class="bann-bot"></div>
    </div>
</div>





